#ifndef _IPlocation_H_
#define _IPlocation_H_

//#define DEBUG // 调试用取消注释会有串口提示

#include <Arduino.h>
#include "HTTP_GET.h"

const String IP_location_url = "http://api.map.baidu.com/location/ip?ak=你的AK";

class IPlocation
{
  public:
  //联网获取当前位置经纬度信息
  bool get();
  //经度字符串
  String longitude = "0";
  //纬度字符串
  String latitude = "0";
};

extern IPlocation iplocation;

#endif
